<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>京东到家</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css">
    <link rel="stylesheet" href="./static/swiper.css">
    <style>
      *{
        box-sizing: border-box;
        margin:0;
        padding:0;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script src="./static/swiper.js"></script>
    <script>
      //获取屏幕的宽度
        var clientWidth = window.screen.width;
        //获取根标签
        var html = document.getElementsByTagName("html")[0];
        //设置根元素的font-size
        html.style.fontSize = clientWidth / 20 + "px";
    </script>
  </body>
  
</html>
